<?php
require_once("../classes/Student.php");

$student = new Student;
$fname = ucwords(strtolower($_POST['fname']));
$lname = ucwords(strtolower($_POST['lname']));
$username = $_POST['username'];
$pass = $_POST['pass'];
$gender = ucwords(strtolower($_POST['gender']));
$student->createUser($fname,$lname,$username,$pass,$gender);

header('location: ../index.php');
?>